<?php
declare (strict_types=1);

namespace app\validate;

use think\Validate;

/**
 * 系统角色
 * Class User
 * @package app\validate
 * @date 2019-11-27
 */
class SysRole extends Validate
{
    //验证规则
    protected $rule = [
        'roleName' => 'require|max:20',
        'remark' => 'require|max:140',
    ];

    //提示信息
    protected $message = [
        'roleName.require' => '请输入账户',
        'roleName.max' => '角色名称长度最多20个字符',
        'remark.require' => '备注不能为空',
        'remark.max' => '备注最多140个字符',
     //   'remark.chsDash' => '备注只能是汉字、字母、数字和下划线_及破折号-',
    ];


}
